import request from "../config/Request";

export async function get(url: string, data: any) {
    const result = await request({
        url: url,
        method: 'get',
        params: data
    })
    return result.data
}

export async function post(url: string, data: any) {
    const result = await request({
        url: url,
        method: 'post',
        data: data
    })
    return result.data
}

